<%@page contentType="text/html; charset=UTF-8" import="com.pub.database.*,java.util.*" %>
<% response.setContentType("text/html;charset=UTF-8"); request.setCharacterEncoding("UTF-8"); %>
<% response.setHeader("Cache.Control","no-cache"); response.setHeader("Pragma","no-cache"); response.setDateHeader("Expires",0);%>
<%
//使用file_adapter來將附檔資訊設到session去
//而不透過url的參數傳遞是為了避掉url參數總長度255的限制
//remark by kate@2008/3/6
  if (request.getParameter("flow_num") != null) {
      java.util.Hashtable<String,String> lhtAttReqInfo=new java.util.Hashtable<String,String>();

      lhtAttReqInfo.put("att_table",(request.getParameter("att_table")!=null && !request.getParameter("att_table").equals("") ? request.getParameter("att_table") : ""));
      lhtAttReqInfo.put("DB_Alias",(request.getParameter("db_alias")!=null && !request.getParameter("db_alias").equals("") ? request.getParameter("db_alias") : ""));
      lhtAttReqInfo.put("DBDebug",(request.getParameter("debug")!=null && !request.getParameter("debug").equals("") ? request.getParameter("debug") : ""));
      lhtAttReqInfo.put("SourceCharset","utf-8");
      lhtAttReqInfo.put("TargetCharset","utf-8");
      lhtAttReqInfo.put("flow_code",(request.getParameter("flow_code")!=null && !request.getParameter("flow_code").equals("") ? request.getParameter("flow_code") : ""));
      lhtAttReqInfo.put("flow_num",request.getParameter("flow_num"));
      lhtAttReqInfo.put("max_size",String.valueOf(20*1024*1024));
      lhtAttReqInfo.put("file_storage","DB");
      lhtAttReqInfo.put("file_path","");
      lhtAttReqInfo.put("knd",(request.getParameter("knd")!=null && !request.getParameter("knd").equals("") ? request.getParameter("knd"):""));
      lhtAttReqInfo.put("att_ifrm_name",(request.getParameter("att_ifrm_name")!=null && !request.getParameter("att_ifrm_name").equals("") ? request.getParameter("att_ifrm_name") : ""));
      //lhtAttReqInfo.put("att_ifrm_name","qis_flow_add.jsp");
      request.getSession().setAttribute("att_req_info",lhtAttReqInfo);
      //view.setOnloadScript("window.showModalDialog('UploadFile.jsp');");
      response.sendRedirect("/PUBPAGE/sys_upload_file.jsp" );

}
else
{ System.out.println("傳入參數空值");}
%>
<html>
  <head>
  </head>
  <body>
  </body>
</html>
